package halberd.data;

public class FourierImgData extends ImgData{
	Complex[] cpdata;
	int len;
	int fw;
	int fh;
	public FourierImgData(int w, int h) {
		//super(null,w,h,DataType.FOURIERED);
		super(w,h);
		fw = 1;  
        fh = 1;  
        while (fw * 2 <= w) {  
        	fw *= 2;  
        }  
        while (fh * 2 <= h) {  
        	fh *= 2;  
        }  
        len=fw*fh;
        cpdata=new Complex[len];
	}
	public Complex[] getCpDatas(){
		return cpdata;
	}
	public int getFWidth() {
		return fw;
	}
	public int getFHeight() {
		return fh;
	}
}